Code
- define _WIN32_IE 0x0400
- include <windows.h>
- include <windowsx.h>
- include <commctrl.h>
- include <string.h>
- include <stdarg.h>
- include <stdio.h>
//##############################################################################
// print with format to debug window
//##############################################################################
void dbgprintf(char *format,...)
{
va_list arg_ptr;
char buffer[400];
va_start(arg_ptr, format);
vsprintf(buffer, format, arg_ptr);
va_end(arg_ptr);
OutputDebugString(buffer);
}